package com.sos.widget.view;

import android.content.Context;
import android.graphics.Color;
import android.util.AttributeSet;
import android.util.TypedValue;
import com.hjq.bar.TitleBar;
import com.sos.widget.R;

/**
 * @Description
 * @Author 梁浩文
 * @Date 2022/9/15 18:08
 */
public class AppTitleBar extends TitleBar {
    public AppTitleBar(Context context) {
        super(context);
        initView();
    }

    public AppTitleBar(Context context, AttributeSet attrs) {
        super(context, attrs);
        initView();
    }

    public void initView(){
        setLeftIcon(R.drawable.ic_left_24);
        setTitleColor(Color.BLACK);
        setTitleSize(TypedValue.COMPLEX_UNIT_SP,17);
        getTitleView().getPaint().setFakeBoldText(true);
    }

}
